import os
from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'meiduo_mall.settings')

#创建celery实例
app = Celery('celery_tasks')

#broker
app.config_from_object('celery_tasks.config')

#检测包
app.autodiscover_tasks(['celery_tasks.sms','celery_tasks.email'])